{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang edit:admin}</h3>
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/adsmanage?act=edit_submit&key=$ads_edit['key']}}" id="addform">
			<div class="formgroup">
				<label class="formlabel">{lang th_title:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="ad_name" id="ad_name" value="$ads_edit['ad_name']"/>
				</div>
				<span class="formhelp">{lang th_title:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang th_type:admin}:</label>
				<div class="formcontrol">
					<select name="ad_position" id="ad_position">
					{loop $positions $position}
					<option value="$position" {if $position==$ads_edit['ad_position']}selected{/if}>{echo lang($position,'admin')}</option>
					{/loop}
					</select>
				</div>
				<span class="formhelp">{lang th_type:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel"> </label>
				<div class="formcontrol">
					<label>{lang width:admin}:</label>
					<input type="text" class="small" id="width" name="width" value="$ads_edit['width']"> 
					<label>{lang height:admin}:</label>
               		<input type="text" class="small" id="height" name="height" value="$ads_edit['height']">
				</div>
				<span class="formhelp"> </span>
			</div>


			<div class="formgroup">
				<label class="formlabel">{lang th_content:admin}:</label>
				<div class="formcontrol">
					<textarea id="ad_source" name="ad_source" rows="5">$ads_edit['ad_source']</textarea>
				</div>
				<span class="formhelp">{lang th_content:admin}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}